import Vue from 'vue'
import Router from 'vue-router'
//      变量
// import HelloWorld from '@/components/HelloWorld'
import Home from '@/pages/Home/home'
import List_a from '@/pages/List/List'
//@ 符号表示的是当前 src目录


Vue.use(Router)

//路由的配置项
export default new Router({
  routes: [
    {
      path: '/',//访问根路径
      name: 'Home',
      component: Home //组件
    },
    {
      path: '/list',//访问list路径
      name: 'List',
      component: List_a//组件
    }
  ]
})
